const small_film_set = [
  {
    id: 1,
    title: "The Shawshank Redemption",
    year: 1994,
    votes: 678790,
    rating: 9.2,
    rank: 1,
    category: "Thriller",
  },
  {
    id: 2,
    title: "The Godfather",
    year: 1972,
    votes: 511495,
    rating: 9.2,
    rank: 2,
    category: "Crime",
  },
  {
    id: 3,
    title: "The Godfather: Part II",
    year: 1974,
    votes: 319352,
    rating: 9.0,
    rank: 3,
    category: "Crime",
  },
  {
    id: 4,
    title: "The Good, the Bad and the Ugly",
    year: 1966,
    votes: 213030,
    rating: 8.9,
    rank: 4,
    category: "Western",
  },
  {
    id: 5,
    title: "Pulp fiction",
    year: 1994,
    votes: 533848,
    rating: 8.9,
    rank: 5,
    category: "Crime",
  },
  {
    id: 6,
    title: "12 Angry Men",
    year: 1957,
    votes: 164558,
    rating: 8.9,
    rank: 6,
    category: "Western",
  },
];

const small_wrong_film_set = [
  {
    id: 1,
    title: "The Shawshank Redemption",
    year: 1994,
    votes: 678790,
    rating: 9.2,
    rank: 1,
    category: "Thriller",
  },
  {
    id: 2,
    title: "The Godfather",
    year: "",
    votes: 511495,
    rating: 9.2,
    rank: -2,
    category: "Crime",
  },
  {
    id: 3,
    title: "The Godfather: Part II",
    year: 1974,
    votes: 319352,
    rating: 9.0,
    rank: 3,
    category: "Crime",
  },
  {
    id: 4,
    title: "The Good, the Bad and the Ugly",
    year: 1966,
    votes: -213030,
    rating: 8.9,
    rank: 4,
    category: "Western",
  },
  {
    id: 5,
    title: "Pulp fiction",
    year: 1994,
    votes: 533848,
    rating: 8.9,
    rank: 5,
    category: "Crime",
  },
  {
    id: 6,
    title: "",
    year: 1957,
    votes: 164558,
    rating: 8.9,
    rank: 6,
    category: "Western",
  },
];

const small_wide_film_set = [
  {
    id: 1,
    title: "The Shawshank Redemption",
    year: 1994,
    votes: 678790,
    rating: 9.2,
    rank: 1,
    "2008_1": 825,
    "2008_2": 1684,
    "2008_3": 4019,
    "2008_4": 1808,
    "2008_5": 595,
    "2008_6": 5814,
    "2008_7": 7751,
    "2008_8": 7818,
    "2008_9": 1000,
    "2008_10": 4901,
    "2008_11": 1121,
    "2008_12": 1676,
    "2009_1": 6566,
    "2009_2": 9189,
    "2009_3": 5084,
    "2009_4": 6094,
    "2009_5": 5662,
    "2009_6": 3834,
    "2009_7": 7298,
    "2009_8": 9850,
    "2009_9": 9514,
    "2009_10": 1919,
    "2009_11": 5691,
    "2009_12": 5921,
    "2010_1": 3271,
    "2010_2": 5044,
    "2010_3": 4166,
    "2010_4": 9910,
    "2010_5": 2568,
    "2010_6": 500,
    "2010_7": 106,
    "2010_8": 9359,
    "2010_9": 3322,
    "2010_10": 8669,
    "2010_11": 5590,
    "2010_12": 6412,
    "2011_1": 6250,
    "2011_2": 2341,
    "2011_3": 1231,
    "2011_4": 4311,
    "2011_5": 3250,
    "2011_6": 7968,
    "2011_7": 9646,
    "2011_8": 9976,
    "2011_9": 1860,
    "2011_10": 6771,
    "2011_11": 9421,
    "2011_12": 6052,
    category: "Thriller",
  },
  {
    id: 2,
    title: "The Godfather",
    year: 1972,
    votes: 511495,
    rating: 9.2,
    rank: 2,
    "2008_1": 4744,
    "2008_2": 8097,
    "2008_3": 4032,
    "2008_4": 7566,
    "2008_5": 4705,
    "2008_6": 3551,
    "2008_7": 6243,
    "2008_8": 2587,
    "2008_9": 7552,
    "2008_10": 8267,
    "2008_11": 6034,
    "2008_12": 4954,
    "2009_1": 8194,
    "2009_2": 4167,
    "2009_3": 9152,
    "2009_4": 8026,
    "2009_5": 2913,
    "2009_6": 5817,
    "2009_7": 2527,
    "2009_8": 5382,
    "2009_9": 8513,
    "2009_10": 2161,
    "2009_11": 1981,
    "2009_12": 8909,
    "2010_1": 5753,
    "2010_2": 5471,
    "2010_3": 8441,
    "2010_4": 4742,
    "2010_5": 3427,
    "2010_6": 5448,
    "2010_7": 2345,
    "2010_8": 1410,
    "2010_9": 1190,
    "2010_10": 4712,
    "2010_11": 7002,
    "2010_12": 3004,
    "2011_1": 8260,
    "2011_2": 8357,
    "2011_3": 9898,
    "2011_4": 3225,
    "2011_5": 5499,
    "2011_6": 772,
    "2011_7": 7473,
    "2011_8": 9197,
    "2011_9": 7296,
    "2011_10": 5795,
    "2011_11": 2243,
    "2011_12": 4084,
    category: "Crime",
  },
  {
    id: 3,
    title: "The Godfather: Part II",
    year: 1974,
    votes: 319352,
    rating: 9,
    rank: 3,
    "2008_1": 3239,
    "2008_2": 8546,
    "2008_3": 4520,
    "2008_4": 5658,
    "2008_5": 9962,
    "2008_6": 1898,
    "2008_7": 9645,
    "2008_8": 3645,
    "2008_9": 2843,
    "2008_10": 2703,
    "2008_11": 9150,
    "2008_12": 7886,
    "2009_1": 7036,
    "2009_2": 786,
    "2009_3": 1391,
    "2009_4": 2467,
    "2009_5": 5293,
    "2009_6": 9924,
    "2009_7": 98,
    "2009_8": 4451,
    "2009_9": 5325,
    "2009_10": 8339,
    "2009_11": 4009,
    "2009_12": 9881,
    "2010_1": 1124,
    "2010_2": 6738,
    "2010_3": 683,
    "2010_4": 1579,
    "2010_5": 1033,
    "2010_6": 7754,
    "2010_7": 5279,
    "2010_8": 0,
    "2010_9": 78,
    "2010_10": 9214,
    "2010_11": 9153,
    "2010_12": 8039,
    "2011_1": 2702,
    "2011_2": 1323,
    "2011_3": 1537,
    "2011_4": 7690,
    "2011_5": 2027,
    "2011_6": 4134,
    "2011_7": 7721,
    "2011_8": 5278,
    "2011_9": 8141,
    "2011_10": 9983,
    "2011_11": 7849,
    "2011_12": 5303,
    category: "Crime",
  },
  {
    id: 4,
    title: "The Good, the Bad and the Ugly",
    year: 1966,
    votes: 213030,
    rating: 8.9,
    rank: 4,
    "2008_1": 6387,
    "2008_2": 7049,
    "2008_3": 853,
    "2008_4": 3796,
    "2008_5": 8201,
    "2008_6": 3256,
    "2008_7": 3371,
    "2008_8": 838,
    "2008_9": 460,
    "2008_10": 2350,
    "2008_11": 7849,
    "2008_12": 1780,
    "2009_1": 6991,
    "2009_2": 7947,
    "2009_3": 3580,
    "2009_4": 1336,
    "2009_5": 9238,
    "2009_6": 9107,
    "2009_7": 2272,
    "2009_8": 8258,
    "2009_9": 6329,
    "2009_10": 1587,
    "2009_11": 9687,
    "2009_12": 3113,
    "2010_1": 6326,
    "2010_2": 1599,
    "2010_3": 4139,
    "2010_4": 4733,
    "2010_5": 1207,
    "2010_6": 8378,
    "2010_7": 8285,
    "2010_8": 6670,
    "2010_9": 8884,
    "2010_10": 1425,
    "2010_11": 7896,
    "2010_12": 4027,
    "2011_1": 6678,
    "2011_2": 9200,
    "2011_3": 990,
    "2011_4": 3836,
    "2011_5": 1305,
    "2011_6": 9356,
    "2011_7": 4406,
    "2011_8": 5617,
    "2011_9": 8501,
    "2011_10": 9167,
    "2011_11": 4815,
    "2011_12": 7588,
    category: "Western",
  },
  {
    id: 5,
    title: "Pulp fiction",
    year: 1994,
    votes: 533848,
    rating: 8.9,
    rank: 5,
    "2008_1": 4124,
    "2008_2": 7580,
    "2008_3": 8943,
    "2008_4": 726,
    "2008_5": 9630,
    "2008_6": 72,
    "2008_7": 9216,
    "2008_8": 3065,
    "2008_9": 3932,
    "2008_10": 8715,
    "2008_11": 9202,
    "2008_12": 8502,
    "2009_1": 2714,
    "2009_2": 6146,
    "2009_3": 9972,
    "2009_4": 9784,
    "2009_5": 5982,
    "2009_6": 8769,
    "2009_7": 2842,
    "2009_8": 5311,
    "2009_9": 5314,
    "2009_10": 1311,
    "2009_11": 6633,
    "2009_12": 7306,
    "2010_1": 7710,
    "2010_2": 7259,
    "2010_3": 2022,
    "2010_4": 1546,
    "2010_5": 4482,
    "2010_6": 9194,
    "2010_7": 8606,
    "2010_8": 322,
    "2010_9": 6280,
    "2010_10": 7835,
    "2010_11": 3570,
    "2010_12": 9131,
    "2011_1": 6809,
    "2011_2": 1296,
    "2011_3": 317,
    "2011_4": 6412,
    "2011_5": 4539,
    "2011_6": 7534,
    "2011_7": 952,
    "2011_8": 8162,
    "2011_9": 6341,
    "2011_10": 6013,
    "2011_11": 96,
    "2011_12": 2932,
    category: "Crime",
  },
  {
    id: 6,
    title: "12 Angry Men",
    year: 1957,
    votes: 164558,
    rating: 8.9,
    rank: 6,
    "2008_1": 5166,
    "2008_2": 7691,
    "2008_3": 8589,
    "2008_4": 7165,
    "2008_5": 4953,
    "2008_6": 9688,
    "2008_7": 8448,
    "2008_8": 7663,
    "2008_9": 8345,
    "2008_10": 5278,
    "2008_11": 7618,
    "2008_12": 1204,
    "2009_1": 1567,
    "2009_2": 6242,
    "2009_3": 184,
    "2009_4": 9477,
    "2009_5": 984,
    "2009_6": 6084,
    "2009_7": 3739,
    "2009_8": 2435,
    "2009_9": 1812,
    "2009_10": 3344,
    "2009_11": 4585,
    "2009_12": 4544,
    "2010_1": 1128,
    "2010_2": 2864,
    "2010_3": 8628,
    "2010_4": 1458,
    "2010_5": 9146,
    "2010_6": 5983,
    "2010_7": 3230,
    "2010_8": 1540,
    "2010_9": 9348,
    "2010_10": 4604,
    "2010_11": 9869,
    "2010_12": 1019,
    "2011_1": 1215,
    "2011_2": 9784,
    "2011_3": 4237,
    "2011_4": 9156,
    "2011_5": 6358,
    "2011_6": 7420,
    "2011_7": 7660,
    "2011_8": 8808,
    "2011_9": 1764,
    "2011_10": 9855,
    "2011_11": 9983,
    "2011_12": 5995,
    category: "Western",
  },
];

const big_film_set = [
  {
    id: 1,
    title: "The Shawshank Redemption",
    year: "1994",
    votes: "678.79",
    rating: "9.2",
    rank: "1",
  },
  {
    id: 2,
    title: "The Godfather",
    year: "1972",
    votes: "511.495",
    rating: "9.2",
    rank: "2",
  },
  {
    id: 3,
    title: "The Godfather: Part II",
    year: "1974",
    votes: "319.352",
    rating: "9",
    rank: "3",
  },
  {
    id: 4,
    title: "The Good, the Bad and the Ugly",
    year: "1966",
    votes: "213.03",
    rating: "8.9",
    rank: "4",
  },
  {
    id: 5,
    title: "Pulp Fiction",
    year: "1994",
    votes: "533.848",
    rating: "8.9",
    rank: "5",
  },
  {
    id: 6,
    title: "12 Angry Men",
    year: "1957",
    votes: "164.558",
    rating: "8.9",
    rank: "6",
  },
  {
    id: 7,
    title: "Schindler's List",
    year: "1993",
    votes: "355.638",
    rating: "8.9",
    rank: "7",
  },
  {
    id: 8,
    title: "One Flew Over the Cuckoo's Nest",
    year: "1975",
    votes: "283.176",
    rating: "8.8",
    rank: "8",
  },
  {
    id: 9,
    title: "The Dark Knight",
    year: "2008",
    votes: "612.37",
    rating: "8.8",
    rank: "9",
  },
  {
    id: 10,
    title: "The Lord of the Rings: The Return of the Kin",
    year: "2003",
    votes: "472.843",
    rating: "8.8",
    rank: "10",
  },
  {
    id: 11,
    title: "Star Wars: Episode V - The Empire Strikes Bac",
    year: "1980",
    votes: "348.012",
    rating: "8.8",
    rank: "11",
  },
  {
    id: 12,
    title: "Inception",
    year: "2010",
    votes: "458.693",
    rating: "8.8",
    rank: "12",
  },
  {
    id: 13,
    title: "Fight Club",
    year: "1999",
    votes: "507.723",
    rating: "8.8",
    rank: "13",
  },
  {
    id: 14,
    title: "Seven Samurai",
    year: "1954",
    votes: "118.925",
    rating: "8.8",
    rank: "14",
  },
  {
    id: 15,
    title: "Goodfellas",
    year: "1990",
    votes: "299.349",
    rating: "8.7",
    rank: "15",
  },
  {
    id: 16,
    title: "The Lord of the Rings: The Fellowship of the Rin",
    year: "2001",
    votes: "494.003",
    rating: "8.7",
    rank: "16",
  },
  {
    id: 17,
    title: "Star Wars",
    year: "1977",
    votes: "393.087",
    rating: "8.7",
    rank: "17",
  },
  {
    id: 18,
    title: "City of God",
    year: "2002",
    votes: "222.818",
    rating: "8.7",
    rank: "18",
  },
  {
    id: 19,
    title: "Casablanca",
    year: "1942",
    votes: "202.051",
    rating: "8.7",
    rank: "19",
  },
  {
    id: 20,
    title: "Once Upon a Time in the West",
    year: "1968",
    votes: "97.931",
    rating: "8.7",
    rank: "20",
  },
  {
    id: 21,
    title: "The Matrix",
    year: "1999",
    votes: "492.325",
    rating: "8.7",
    rank: "21",
  },
  {
    id: 22,
    title: "Rear Window",
    year: "1954",
    votes: "148.162",
    rating: "8.7",
    rank: "22",
  },
  {
    id: 23,
    title: "Raiders of the Lost Ark",
    year: "1981",
    votes: "300.252",
    rating: "8.7",
    rank: "23",
  },
  {
    id: 24,
    title: "The Silence of the Lambs",
    year: "1991",
    votes: "324.419",
    rating: "8.7",
    rank: "24",
  },
  {
    id: 25,
    title: "The Usual Suspects",
    year: "1995",
    votes: "331.99",
    rating: "8.7",
    rank: "25",
  },
  {
    id: 26,
    title: "Psycho",
    year: "1960",
    votes: "182.319",
    rating: "8.6",
    rank: "26",
  },
  {
    id: 27,
    title: "Se7en",
    year: "1995",
    votes: "380.479",
    rating: "8.6",
    rank: "27",
  },
  {
    id: 28,
    title: "Forrest Gump",
    year: "1994",
    votes: "416.066",
    rating: "8.6",
    rank: "28",
  },
  {
    id: 29,
    title: "The Lord of the Rings: The Two Towers",
    year: "2002",
    votes: "423.855",
    rating: "8.6",
    rank: "29",
  },
  {
    id: 30,
    title: "It's a Wonderful Life",
    year: "1946",
    votes: "126.537",
    rating: "8.6",
    rank: "30",
  },
  {
    id: 31,
    title: "Memento",
    year: "2000",
    votes: "358.354",
    rating: "8.6",
    rank: "31",
  },
  {
    id: 32,
    title: "Leon: The Professional",
    year: "1994",
    votes: "274.245",
    rating: "8.6",
    rank: "32",
  },
  {
    id: 33,
    title: "Sunset Blvd.",
    year: "1950",
    votes: "68.932",
    rating: "8.6",
    rank: "33",
  },
  {
    id: 34,
    title:
      "Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb",
    year: "1964",
    votes: "185.368",
    rating: "8.6",
    rank: "34",
  },
  {
    id: 35,
    title: "Apocalypse Now",
    year: "1979",
    votes: "214.205",
    rating: "8.6",
    rank: "35",
  },
  {
    id: 36,
    title: "American History X",
    year: "1998",
    votes: "305.747",
    rating: "8.5",
    rank: "36",
  },
  {
    id: 37,
    title: "North by Northwest",
    year: "1959",
    votes: "112.951",
    rating: "8.5",
    rank: "37",
  },
  {
    id: 38,
    title: "Citizen Kane",
    year: "1941",
    votes: "163.906",
    rating: "8.5",
    rank: "38",
  },
  {
    id: 39,
    title: "Terminator 2: Judgment Day",
    year: "1991",
    votes: "309.922",
    rating: "8.5",
    rank: "39",
  },
  {
    id: 40,
    title: "Toy Story 3",
    year: "2010",
    votes: "173.833",
    rating: "8.5",
    rank: "40",
  },
  {
    id: 41,
    title: "American Beauty",
    year: "1999",
    votes: "369.318",
    rating: "8.5",
    rank: "41",
  },
  {
    id: 42,
    title: "Saving Private Ryan",
    year: "1998",
    votes: "349.866",
    rating: "8.5",
    rank: "42",
  },
  {
    id: 43,
    title: "Taxi Driver",
    year: "1976",
    votes: "207.461",
    rating: "8.5",
    rank: "43",
  },
  {
    id: 44,
    title: "Alien",
    year: "1979",
    votes: "227.723",
    rating: "8.5",
    rank: "44",
  },
  {
    id: 45,
    title: "Spirited Away",
    year: "2001",
    votes: "142.366",
    rating: "8.5",
    rank: "45",
  },
  {
    id: 46,
    title: "City Lights",
    year: "1931",
    votes: "38.898",
    rating: "8.5",
    rank: "46",
  },
  {
    id: 47,
    title: "Vertigo",
    year: "1958",
    votes: "113.232",
    rating: "8.5",
    rank: "47",
  },
  {
    id: 48,
    title: "The Shining",
    year: "1980",
    votes: "236.782",
    rating: "8.5",
    rank: "48",
  },
  {
    id: 49,
    title: "Paths of Glory",
    year: "1957",
    votes: "56.418",
    rating: "8.5",
    rank: "49",
  },
  {
    id: 50,
    title: "Am?lie",
    year: "2001",
    votes: "237.208",
    rating: "8.5",
    rank: "50",
  },
  {
    id: 51,
    title: "The Pianist",
    year: "2002",
    votes: "181.523",
    rating: "8.5",
    rank: "51",
  },
  {
    id: 52,
    title: "M",
    year: "1931",
    votes: "49.827",
    rating: "8.5",
    rank: "52",
  },
  {
    id: 53,
    title: "WALLE",
    year: "2008",
    votes: "257.704",
    rating: "8.5",
    rank: "53",
  },
  {
    id: 54,
    title: "Double Indemnity",
    year: "1944",
    votes: "46.968",
    rating: "8.5",
    rank: "54",
  },
  {
    id: 55,
    title: "The Departed",
    year: "2006",
    votes: "347.565",
    rating: "8.4",
    rank: "55",
  },
  {
    id: 56,
    title: "The Lives of Others",
    year: "2006",
    votes: "104.228",
    rating: "8.4",
    rank: "56",
  },
  {
    id: 57,
    title: "A Clockwork Orange",
    year: "1971",
    votes: "244.189",
    rating: "8.4",
    rank: "57",
  },
  {
    id: 58,
    title: "Lawrence of Arabia",
    year: "1962",
    votes: "95.054",
    rating: "8.4",
    rank: "58",
  },
  {
    id: 59,
    title: "Aliens",
    year: "1986",
    votes: "212.588",
    rating: "8.4",
    rank: "59",
  },
  {
    id: 60,
    title: "To Kill a Mockingbird",
    year: "1962",
    votes: "101.352",
    rating: "8.4",
    rank: "60",
  },
  {
    id: 61,
    title: "Modern Times",
    year: "1936",
    votes: "48.296",
    rating: "8.4",
    rank: "61",
  },
  {
    id: 62,
    title: "Life Is Beautiful",
    year: "1997",
    votes: "146.411",
    rating: "8.4",
    rank: "62",
  },
  {
    id: 63,
    title: "Requiem for a Dream",
    year: "2000",
    votes: "243.963",
    rating: "8.4",
    rank: "63",
  },
  {
    id: 64,
    title: "Eternal Sunshine of the Spotless Mind",
    year: "2004",
    votes: "286.331",
    rating: "8.4",
    rank: "64",
  },
  {
    id: 65,
    title: "Das Boot",
    year: "1981",
    votes: "85.191",
    rating: "8.4",
    rank: "65",
  },
  {
    id: 66,
    title: "Back to the Future",
    year: "1985",
    votes: "270.029",
    rating: "8.4",
    rank: "66",
  },
  {
    id: 67,
    title: "Reservoir Dogs",
    year: "1992",
    votes: "271.098",
    rating: "8.4",
    rank: "67",
  },
  {
    id: 68,
    title: "The Third Man",
    year: "1949",
    votes: "60.907",
    rating: "8.4",
    rank: "68",
  },
  {
    id: 69,
    title: "L.A. Confidential",
    year: "1997",
    votes: "203.259",
    rating: "8.4",
    rank: "69",
  },
  {
    id: 70,
    title: "The Prestige",
    year: "2006",
    votes: "291.029",
    rating: "8.4",
    rank: "70",
  },
  {
    id: 71,
    title: "Chinatown",
    year: "1974",
    votes: "98.824",
    rating: "8.4",
    rank: "71",
  },
  {
    id: 72,
    title: "The Treasure of the Sierra Madre",
    year: "1948",
    votes: "40.617",
    rating: "8.4",
    rank: "72",
  },
  {
    id: 73,
    title: "Cinema Paradiso",
    year: "1988",
    votes: "59.743",
    rating: "8.4",
    rank: "73",
  },
  {
    id: 74,
    title: "The Green Mile",
    year: "1999",
    votes: "271.474",
    rating: "8.4",
    rank: "74",
  },
  {
    id: 75,
    title: "Monty Python and the Holy Grail",
    year: "1974",
    votes: "188.389",
    rating: "8.3",
    rank: "75",
  },
  {
    id: 76,
    title: "Once Upon a Time in America",
    year: "1984",
    votes: "94.351",
    rating: "8.3",
    rank: "76",
  },
  {
    id: 77,
    title: "The Great Dictator",
    year: "1940",
    votes: "49.085",
    rating: "8.3",
    rank: "77",
  },
  {
    id: 78,
    title: "Rashomon",
    year: "1950",
    votes: "49.623",
    rating: "8.3",
    rank: "78",
  },
  {
    id: 79,
    title: "Raging Bull",
    year: "1980",
    votes: "112.361",
    rating: "8.3",
    rank: "79",
  },
  {
    id: 80,
    title: "Gladiator",
    year: "2000",
    votes: "372.697",
    rating: "8.3",
    rank: "80",
  },
  {
    id: 81,
    title: "Some Like It Hot",
    year: "1959",
    votes: "83.549",
    rating: "8.3",
    rank: "81",
  },
  {
    id: 82,
    title: "Amadeus",
    year: "1984",
    votes: "122.177",
    rating: "8.3",
    rank: "82",
  },
  {
    id: 83,
    title: "Full Metal Jacket",
    year: "1987",
    votes: "198.428",
    rating: "8.3",
    rank: "83",
  },
  {
    id: 84,
    title: "Singin' in the Rain",
    year: "1952",
    votes: "68.547",
    rating: "8.3",
    rank: "84",
  },
  {
    id: 85,
    title: "All About Eve",
    year: "1950",
    votes: "42.339",
    rating: "8.3",
    rank: "85",
  },
  {
    id: 86,
    title: "Bicycle Thieves",
    year: "1948",
    votes: "37.003",
    rating: "8.3",
    rank: "86",
  },
  {
    id: 87,
    title: "The Bridge on the River Kwai",
    year: "1957",
    votes: "72.819",
    rating: "8.3",
    rank: "87",
  },
  {
    id: 88,
    title: "Pan's Labyrinth",
    year: "2006",
    votes: "205.065",
    rating: "8.3",
    rank: "88",
  },
  {
    id: 89,
    title: "Braveheart",
    year: "1995",
    votes: "309.611",
    rating: "8.3",
    rank: "89",
  },
  {
    id: 90,
    title: "2001: A Space Odyssey",
    year: "1968",
    votes: "196.549",
    rating: "8.3",
    rank: "90",
  },
  {
    id: 91,
    title: "Metropolis",
    year: "1927",
    votes: "51.421",
    rating: "8.3",
    rank: "91",
  },
  {
    id: 92,
    title: "Oldboy",
    year: "2003",
    votes: "133.645",
    rating: "8.3",
    rank: "92",
  },
  {
    id: 93,
    title: "The Apartment",
    year: "1960",
    votes: "47.052",
    rating: "8.3",
    rank: "93",
  },
  {
    id: 94,
    title: "Unforgiven",
    year: "1992",
    votes: "128.601",
    rating: "8.3",
    rank: "94",
  },
  {
    id: 95,
    title: "Downfall",
    year: "2004",
    votes: "110.171",
    rating: "8.3",
    rank: "95",
  },
  {
    id: 96,
    title: "The Sting",
    year: "1973",
    votes: "82.181",
    rating: "8.3",
    rank: "96",
  },
  {
    id: 97,
    title: "Star Wars: Episode VI - Return of the Jedi",
    year: "1983",
    votes: "267.993",
    rating: "8.3",
    rank: "97",
  },
  {
    id: 98,
    title: "Inglourious Basterds",
    year: "2009",
    votes: "277.969",
    rating: "8.3",
    rank: "98",
  },
  {
    id: 99,
    title: "Princess Mononoke",
    year: "1997",
    votes: "86.032",
    rating: "8.3",
    rank: "99",
  },
  {
    id: 100,
    title: "Indiana Jones and the Last Crusade",
    year: "1989",
    votes: "217.054",
    rating: "8.3",
    rank: "100",
  },
  {
    id: 101,
    title: "Mr. Smith Goes to Washington",
    year: "1939",
    votes: "40.325",
    rating: "8.3",
    rank: "101",
  },
  {
    id: 102,
    title: "The Elephant Man",
    year: "1980",
    votes: "75.735",
    rating: "8.3",
    rank: "102",
  },
  {
    id: 103,
    title: "Up",
    year: "2009",
    votes: "190.499",
    rating: "8.3",
    rank: "103",
  },
  {
    id: 104,
    title: "Gran Torino",
    year: "2008",
    votes: "199.415",
    rating: "8.3",
    rank: "104",
  },
  {
    id: 105,
    title: "On the Waterfront",
    year: "1954",
    votes: "50.425",
    rating: "8.3",
    rank: "105",
  },
  {
    id: 106,
    title: "The Maltese Falcon",
    year: "1941",
    votes: "61.58",
    rating: "8.3",
    rank: "106",
  },
  {
    id: 107,
    title: "Die Hard",
    year: "1988",
    votes: "242.884",
    rating: "8.3",
    rank: "107",
  },
  {
    id: 108,
    title: "The Seventh Seal",
    year: "1957",
    votes: "49.455",
    rating: "8.3",
    rank: "108",
  },
  {
    id: 109,
    title: "Rebecca",
    year: "1940",
    votes: "43.22",
    rating: "8.3",
    rank: "109",
  },
  {
    id: 110,
    title: "The Great Escape",
    year: "1963",
    votes: "77.425",
    rating: "8.3",
    rank: "110",
  },
  {
    id: 111,
    title: "The Lion King",
    year: "1994",
    votes: "207.905",
    rating: "8.3",
    rank: "111",
  },
  {
    id: 112,
    title: "Grave of the Fireflies",
    year: "1988",
    votes: "47.285",
    rating: "8.2",
    rank: "112",
  },
  {
    id: 113,
    title: "Batman Begins",
    year: "2005",
    votes: "351.595",
    rating: "8.2",
    rank: "113",
  },
  {
    id: 114,
    title: "Yojimbo",
    year: "1961",
    votes: "36.197",
    rating: "8.2",
    rank: "114",
  },
  {
    id: 115,
    title: "Sin City",
    year: "2005",
    votes: "319.165",
    rating: "8.2",
    rank: "115",
  },
  {
    id: 116,
    title: "Heat",
    year: "1995",
    votes: "188.934",
    rating: "8.2",
    rank: "116",
  },
  {
    id: 117,
    title: "For a Few Dollars More",
    year: "1965",
    votes: "60.679",
    rating: "8.2",
    rank: "117",
  },
  {
    id: 118,
    title: "The General",
    year: "1926",
    votes: "25.123",
    rating: "8.2",
    rank: "118",
  },
  {
    id: 119,
    title: "Blade Runner",
    year: "1982",
    votes: "227.118",
    rating: "8.2",
    rank: "119",
  },
  {
    id: 120,
    title: "Fargo",
    year: "1996",
    votes: "201.609",
    rating: "8.2",
    rank: "120",
  },
  {
    id: 121,
    title: "Witness for the Prosecution",
    year: "1957",
    votes: "23.3",
    rating: "8.2",
    rank: "121",
  },
  {
    id: 122,
    title: "Snatch.",
    year: "2000",
    votes: "237.981",
    rating: "8.2",
    rank: "122",
  },
  {
    id: 123,
    title: "Black Swan",
    year: "2010",
    votes: "191.319",
    rating: "8.2",
    rank: "123",
  },
  {
    id: 124,
    title: "Ran",
    year: "1985",
    votes: "41.467",
    rating: "8.2",
    rank: "124",
  },
  {
    id: 125,
    title: "A Separation",
    year: "2011",
    votes: "19.585",
    rating: "8.2",
    rank: "125",
  },
  {
    id: 126,
    title: "Wild Strawberries",
    year: "1957",
    votes: "27.911",
    rating: "8.2",
    rank: "126",
  },
  {
    id: 127,
    title: "Jaws",
    year: "1975",
    votes: "175.85",
    rating: "8.2",
    rank: "127",
  },
  {
    id: 128,
    title: "The King's Speech",
    year: "2010",
    votes: "134.518",
    rating: "8.2",
    rank: "128",
  },
  {
    id: 129,
    title: "Hotel Rwanda",
    year: "2004",
    votes: "119.597",
    rating: "8.2",
    rank: "129",
  },
  {
    id: 130,
    title: "Touch of Evil",
    year: "1958",
    votes: "39.633",
    rating: "8.2",
    rank: "130",
  },
  {
    id: 131,
    title: "No Country for Old Men",
    year: "2007",
    votes: "260.354",
    rating: "8.2",
    rank: "131",
  },
  {
    id: 132,
    title: "Toy Story",
    year: "1995",
    votes: "216.349",
    rating: "8.2",
    rank: "132",
  },
  {
    id: 133,
    title: "The Big Lebowski",
    year: "1998",
    votes: "230.128",
    rating: "8.2",
    rank: "133",
  },
  {
    id: 134,
    title: "The Wizard of Oz",
    year: "1939",
    votes: "129.926",
    rating: "8.2",
    rank: "134",
  },
  {
    id: 135,
    title: "The Deer Hunter",
    year: "1978",
    votes: "111.537",
    rating: "8.2",
    rank: "135",
  },
  {
    id: 136,
    title: "Cool Hand Luke",
    year: "1967",
    votes: "57.371",
    rating: "8.2",
    rank: "136",
  },
  {
    id: 137,
    title: "The Sixth Sense",
    year: "1999",
    votes: "308.734",
    rating: "8.2",
    rank: "137",
  },
  {
    id: 138,
    title: "It Happened One Night",
    year: "1934",
    votes: "31.1",
    rating: "8.2",
    rank: "138",
  },
  {
    id: 139,
    title: "Strangers on a Train",
    year: "1951",
    votes: "43.597",
    rating: "8.2",
    rank: "139",
  },
  {
    id: 140,
    title: "Annie Hall",
    year: "1977",
    votes: "83.123",
    rating: "8.2",
    rank: "140",
  },
  {
    id: 141,
    title: "Kill Bill: Vol. 1",
    year: "2003",
    votes: "299.11",
    rating: "8.2",
    rank: "141",
  },
  {
    id: 142,
    title: "Scarface",
    year: "1983",
    votes: "206.07",
    rating: "8.2",
    rank: "142",
  },
  {
    id: 143,
    title: "Ikiru",
    year: "1952",
    votes: "20.369",
    rating: "8.2",
    rank: "143",
  },
  {
    id: 144,
    title: "High Noon",
    year: "1952",
    votes: "41.827",
    rating: "8.2",
    rank: "144",
  },
  {
    id: 145,
    title: "Platoon",
    year: "1986",
    votes: "138.443",
    rating: "8.2",
    rank: "145",
  },
  {
    id: 146,
    title: "Donnie Darko",
    year: "2001",
    votes: "269.56",
    rating: "8.1",
    rank: "146",
  },
  {
    id: 147,
    title: "Slumdog Millionaire",
    year: "2008",
    votes: "249.953",
    rating: "8.1",
    rank: "147",
  },
  {
    id: 148,
    title: "Into the Wild",
    year: "2007",
    votes: "151.763",
    rating: "8.1",
    rank: "148",
  },
  {
    id: 149,
    title: "Trainspotting",
    year: "1996",
    votes: "195.942",
    rating: "8.1",
    rank: "149",
  },
  {
    id: 150,
    title: "The Gold Rush",
    year: "1925",
    votes: "27.436",
    rating: "8.1",
    rank: "150",
  },
  {
    id: 151,
    title: "The Wages of Fear",
    year: "1953",
    votes: "18.138",
    rating: "8.1",
    rank: "151",
  },
  {
    id: 152,
    title: "The Kid",
    year: "1921",
    votes: "20.639",
    rating: "8.1",
    rank: "152",
  },
  {
    id: 153,
    title: "Butch Cassidy and the Sundance Kid",
    year: "1969",
    votes: "71.81",
    rating: "8.1",
    rank: "153",
  },
  {
    id: 154,
    title: "Million Dollar Baby",
    year: "2004",
    votes: "191.29",
    rating: "8.1",
    rank: "154",
  },
  {
    id: 155,
    title: "The Grapes of Wrath",
    year: "1940",
    votes: "29.278",
    rating: "8.1",
    rank: "155",
  },
  {
    id: 156,
    title: "Notorious",
    year: "1946",
    votes: "38.116",
    rating: "8.1",
    rank: "156",
  },
  {
    id: 157,
    title: "Gone with the Wind",
    year: "1939",
    votes: "100.838",
    rating: "8.1",
    rank: "157",
  },
  {
    id: 158,
    title: "Lock, Stock and Two Smoking Barrels",
    year: "1998",
    votes: "171.183",
    rating: "8.1",
    rank: "158",
  },
  {
    id: 159,
    title: "Sunrise: A Song of Two Humans",
    year: "1927",
    votes: "14.758",
    rating: "8.1",
    rank: "159",
  },
  {
    id: 160,
    title: "There Will Be Blood",
    year: "2007",
    votes: "167.743",
    rating: "8.1",
    rank: "160",
  },
  {
    id: 161,
    title: "The Secret in Their Eyes",
    year: "2009",
    votes: "40.457",
    rating: "8.1",
    rank: "161",
  },
  {
    id: 162,
    title: "The Thing",
    year: "1982",
    votes: "110.853",
    rating: "8.1",
    rank: "162",
  },
  {
    id: 163,
    title: "Amores Perros",
    year: "2000",
    votes: "80.688",
    rating: "8.1",
    rank: "163",
  },
  {
    id: 164,
    title: "Groundhog Day",
    year: "1993",
    votes: "181.161",
    rating: "8.1",
    rank: "164",
  },
  {
    id: 165,
    title: "Casino",
    year: "1995",
    votes: "141.969",
    rating: "8.1",
    rank: "165",
  },
  {
    id: 166,
    title: "Life of Brian",
    year: "1979",
    votes: "121.347",
    rating: "8.1",
    rank: "166",
  },
  {
    id: 167,
    title: "Ben-Hur",
    year: "1959",
    votes: "73.442",
    rating: "8.1",
    rank: "167",
  },
  {
    id: 168,
    title: "Finding Nemo",
    year: "2003",
    votes: "233.406",
    rating: "8.1",
    rank: "168",
  },
  {
    id: 169,
    title: "Drive",
    year: "2011",
    votes: "71.966",
    rating: "8.1",
    rank: "169",
  },
  {
    id: 170,
    title: "The Terminator",
    year: "1984",
    votes: "237.302",
    rating: "8.1",
    rank: "170",
  },
  {
    id: 171,
    title: "The Big Sleep",
    year: "1946",
    votes: "34.921",
    rating: "8.1",
    rank: "171",
  },
  {
    id: 172,
    title: "The Graduate",
    year: "1967",
    votes: "99.51",
    rating: "8.1",
    rank: "172",
  },
  {
    id: 173,
    title: "The Best Years of Our Lives",
    year: "1946",
    votes: "21.025",
    rating: "8.1",
    rank: "173",
  },
  {
    id: 174,
    title: "Diabolique",
    year: "1955",
    votes: "19.426",
    rating: "8.1",
    rank: "174",
  },
  {
    id: 175,
    title: "District 9",
    year: "2009",
    votes: "227.224",
    rating: "8.1",
    rank: "175",
  },
  {
    id: 176,
    title: "Stand by Me",
    year: "1986",
    votes: "116.136",
    rating: "8.1",
    rank: "176",
  },
  {
    id: 177,
    title: "My Neighbor Totoro",
    year: "1988",
    votes: "46.546",
    rating: "8.1",
    rank: "177",
  },
  {
    id: 178,
    title: "How to Train Your Dragon",
    year: "2010",
    votes: "111.43",
    rating: "8.1",
    rank: "178",
  },
  {
    id: 179,
    title: "The Manchurian Candidate",
    year: "1962",
    votes: "40.961",
    rating: "8.1",
    rank: "179",
  },
  {
    id: 180,
    title: "Twelve Monkeys",
    year: "1995",
    votes: "214.455",
    rating: "8.1",
    rank: "180",
  },
  {
    id: 181,
    title: "V for Vendetta",
    year: "2006",
    votes: "307.336",
    rating: "8.1",
    rank: "181",
  },
  {
    id: 182,
    title: "Dog Day Afternoon",
    year: "1975",
    votes: "79.285",
    rating: "8.1",
    rank: "182",
  },
  {
    id: 183,
    title: "The Bourne Ultimatum",
    year: "2007",
    votes: "200.219",
    rating: "8.1",
    rank: "183",
  },
  {
    id: 184,
    title: "Warrior",
    year: "2011",
    votes: "21.216",
    rating: "8.1",
    rank: "184",
  },
  {
    id: 185,
    title: "Good Will Hunting",
    year: "1997",
    votes: "205.157",
    rating: "8.1",
    rank: "185",
  },
  {
    id: 186,
    title: "Judgment at Nuremberg",
    year: "1961",
    votes: "18.591",
    rating: "8.1",
    rank: "186",
  },
  {
    id: 187,
    title: "Network",
    year: "1976",
    votes: "45.502",
    rating: "8.1",
    rank: "187",
  },
  {
    id: 188,
    title: "Gandhi",
    year: "1982",
    votes: "67.385",
    rating: "8.1",
    rank: "188",
  },
  {
    id: 189,
    title: "Harry Potter and the Deathly Hallows: Part 2",
    year: "2011",
    votes: "132.656",
    rating: "8.1",
    rank: "189",
  },
  {
    id: 190,
    title: "The Night of the Hunter",
    year: "1955",
    votes: "32.001",
    rating: "8.1",
    rank: "190",
  },
  {
    id: 191,
    title: "The 400 Blows",
    year: "1959",
    votes: "30.865",
    rating: "8.1",
    rank: "191",
  },
  {
    id: 192,
    title: "The Wrestler",
    year: "2008",
    votes: "134.13",
    rating: "8.1",
    rank: "192",
  },
  {
    id: 193,
    title: "The Battle of Algiers",
    year: "1966",
    votes: "18.001",
    rating: "8",
    rank: "193",
  },
  {
    id: 194,
    title: "Mary and Max",
    year: "2009",
    votes: "31.825",
    rating: "8",
    rank: "194",
  },
  {
    id: 195,
    title: "8?",
    year: "1963",
    votes: "37.872",
    rating: "8",
    rank: "195",
  },
  {
    id: 196,
    title: "The Princess Bride",
    year: "1987",
    votes: "147.586",
    rating: "8",
    rank: "196",
  },
  {
    id: 197,
    title: "Dial M for Murder",
    year: "1954",
    votes: "40.345",
    rating: "8",
    rank: "197",
  },
  {
    id: 198,
    title: "The Killing",
    year: "1956",
    votes: "31.417",
    rating: "8",
    rank: "198",
  },
  {
    id: 199,
    title: "Ratatouille",
    year: "2007",
    votes: "185.945",
    rating: "8",
    rank: "199",
  },
  {
    id: 200,
    title: "Persona",
    year: "1966",
    votes: "22.684",
    rating: "8",
    rank: "200",
  },
  {
    id: 201,
    title: "The Hustler",
    year: "1961",
    votes: "31.412",
    rating: "8",
    rank: "201",
  },
  {
    id: 202,
    title: "La Strada",
    year: "1954",
    votes: "22.477",
    rating: "8",
    rank: "202",
  },
  {
    id: 203,
    title: "Hugo",
    year: "2011",
    votes: "8.919",
    rating: "8",
    rank: "203",
  },
  {
    id: 204,
    title: "Who's Afraid of Virginia Woolf?",
    year: "1966",
    votes: "25.949",
    rating: "8",
    rank: "204",
  },
  {
    id: 205,
    title: "The Exorcist",
    year: "1973",
    votes: "139.364",
    rating: "8",
    rank: "205",
  },
  {
    id: 206,
    title: "Avatar",
    year: "2009",
    votes: "380.608",
    rating: "8",
    rank: "206",
  },
  {
    id: 207,
    title: "The Diving Bell and the Butterfly",
    year: "2007",
    votes: "43.683",
    rating: "8",
    rank: "207",
  },
  {
    id: 208,
    title: "Star Trek",
    year: "2009",
    votes: "196.14",
    rating: "8",
    rank: "208",
  },
  {
    id: 209,
    title: "The Wild Bunch",
    year: "1969",
    votes: "37.975",
    rating: "8",
    rank: "209",
  },
  {
    id: 210,
    title: "The Passion of Joan of Arc",
    year: "1928",
    votes: "14.239",
    rating: "8",
    rank: "210",
  },
  {
    id: 211,
    title: "Fanny and Alexander",
    year: "1982",
    votes: "18.941",
    rating: "8",
    rank: "211",
  },
  {
    id: 212,
    title: "Howl's Moving Castle",
    year: "2004",
    votes: "66.749",
    rating: "8",
    rank: "212",
  },
  {
    id: 213,
    title: "Stalag 17",
    year: "1953",
    votes: "24.726",
    rating: "8",
    rank: "213",
  },
  {
    id: 214,
    title: "A Streetcar Named Desire",
    year: "1951",
    votes: "42.183",
    rating: "8",
    rank: "214",
  },
  {
    id: 215,
    title: "Barry Lyndon",
    year: "1975",
    votes: "49.207",
    rating: "8",
    rank: "215",
  },
  {
    id: 216,
    title: "Rocky",
    year: "1976",
    votes: "134.838",
    rating: "8",
    rank: "216",
  },
  {
    id: 217,
    title: "Sherlock Jr.",
    year: "1924",
    votes: "10.754",
    rating: "8",
    rank: "217",
  },
  {
    id: 218,
    title: "Kind Hearts and Coronets",
    year: "1949",
    votes: "16.34",
    rating: "8",
    rank: "218",
  },
  {
    id: 219,
    title: "The Truman Show",
    year: "1998",
    votes: "221.154",
    rating: "8",
    rank: "219",
  },
  {
    id: 220,
    title: "All Quiet on the Western Front",
    year: "1930",
    votes: "26.985",
    rating: "8",
    rank: "220",
  },
  {
    id: 221,
    title: "Elite Squad: The Enemy Within",
    year: "2010",
    votes: "15.574",
    rating: "8",
    rank: "221",
  },
  {
    id: 222,
    title: "Let the Right One In",
    year: "2008",
    votes: "88.395",
    rating: "8",
    rank: "222",
  },
  {
    id: 223,
    title: "Mystic River",
    year: "2003",
    votes: "159.856",
    rating: "8",
    rank: "223",
  },
  {
    id: 224,
    title: "Rosemary's Baby",
    year: "1968",
    votes: "68.092",
    rating: "8",
    rank: "224",
  },
  {
    id: 225,
    title: "Infernal Affairs",
    year: "2002",
    votes: "44.622",
    rating: "8",
    rank: "225",
  },
  {
    id: 226,
    title: "Roman Holiday",
    year: "1953",
    votes: "40.638",
    rating: "8",
    rank: "226",
  },
  {
    id: 227,
    title: "Nights of Cabiria",
    year: "1957",
    votes: "14.82",
    rating: "8",
    rank: "227",
  },
  {
    id: 228,
    title: "The Celebration",
    year: "1998",
    votes: "33.366",
    rating: "8",
    rank: "228",
  },
  {
    id: 229,
    title: "In Bruges",
    year: "2008",
    votes: "140.536",
    rating: "8",
    rank: "229",
  },
  {
    id: 230,
    title: "The Incredibles",
    year: "2004",
    votes: "213.232",
    rating: "8",
    rank: "230",
  },
  {
    id: 231,
    title: "Magnolia",
    year: "1999",
    votes: "144.556",
    rating: "8",
    rank: "231",
  },
  {
    id: 232,
    title: "Big Fish",
    year: "2003",
    votes: "182.946",
    rating: "8",
    rank: "232",
  },
  {
    id: 233,
    title: "Pirates of the Caribbean: The Curse of the Black Pearl",
    year: "2003",
    votes: "318.759",
    rating: "8",
    rank: "233",
  },
  {
    id: 234,
    title: "Rope",
    year: "1948",
    votes: "41.767",
    rating: "8",
    rank: "234",
  },
  {
    id: 235,
    title: "Manhattan",
    year: "1979",
    votes: "49.572",
    rating: "8",
    rank: "235",
  },
  {
    id: 236,
    title: "A Beautiful Mind",
    year: "2001",
    votes: "183.431",
    rating: "8",
    rank: "236",
  },
  {
    id: 237,
    title: "Ed Wood",
    year: "1994",
    votes: "90.409",
    rating: "8",
    rank: "237",
  },
  {
    id: 238,
    title: "The Man Who Shot Liberty Valance",
    year: "1962",
    votes: "28.131",
    rating: "8",
    rank: "238",
  },
  {
    id: 239,
    title: "Ip Man",
    year: "2008",
    votes: "34.224",
    rating: "8",
    rank: "239",
  },
  {
    id: 240,
    title: "Tokyo Story",
    year: "1953",
    votes: "11.006",
    rating: "8",
    rank: "240",
  },
  {
    id: 241,
    title: "The Social Network",
    year: "2010",
    votes: "172.619",
    rating: "8",
    rank: "241",
  },
  {
    id: 242,
    title: "Stalker",
    year: "1979",
    votes: "27.86",
    rating: "8",
    rank: "242",
  },
  {
    id: 243,
    title: "Kill Bill: Vol. 2",
    year: "2004",
    votes: "239.182",
    rating: "8",
    rank: "243",
  },
  {
    id: 244,
    title: "Shutter Island",
    year: "2010",
    votes: "216.509",
    rating: "8",
    rank: "244",
  },
  {
    id: 245,
    title: "Monsters, Inc.",
    year: "2001",
    votes: "175.202",
    rating: "8",
    rank: "245",
  },
  {
    id: 246,
    title: "Beauty and the Beast",
    year: "1991",
    votes: "101.464",
    rating: "8",
    rank: "246",
  },
  {
    id: 247,
    title: "Grand Illusion",
    year: "1937",
    votes: "14.978",
    rating: "8",
    rank: "247",
  },
  {
    id: 248,
    title: "Nosferatu",
    year: "1922",
    votes: "35.442",
    rating: "8",
    rank: "248",
  },
  {
    id: 249,
    title: "Nausica of the Valley of the Wind",
    year: "1984",
    votes: "29.57",
    rating: "8",
    rank: "249",
  },
  {
    id: 250,
    title: "Sleuth",
    year: "1972",
    votes: "22.343",
    rating: "8",
    rank: "250",
  },
];

const linked_set = [
  { movie: 1, year: 1995, votes: 12828, revenue: 1018 },
  { movie: 1, year: 1996, votes: 12292, revenue: 624 },
  { movie: 1, year: 1997, votes: 6968, revenue: 571 },
  { movie: 1, year: 1998, votes: 6114, revenue: 1143 },
  { movie: 1, year: 1999, votes: 9444, revenue: 546 },
  { movie: 1, year: 2000, votes: 6157, revenue: 1089 },
  { movie: 1, year: 2001, votes: 7724, revenue: 838 },
  { movie: 1, year: 2002, votes: 7354, revenue: 1194 },
  { movie: 1, year: 2003, votes: 5645, revenue: 863 },
  { movie: 1, year: 2004, votes: 14957, revenue: 944 },
  { movie: 2, year: 1995, votes: 13902, revenue: 572 },
  { movie: 2, year: 1996, votes: 6924, revenue: 1489 },
  { movie: 2, year: 1997, votes: 8869, revenue: 941 },
  { movie: 2, year: 1998, votes: 11339, revenue: 975 },
  { movie: 2, year: 1999, votes: 9077, revenue: 1486 },
  { movie: 2, year: 2000, votes: 14127, revenue: 1337 },
  { movie: 2, year: 2001, votes: 8093, revenue: 1173 },
  { movie: 2, year: 2002, votes: 13281, revenue: 1474 },
  { movie: 2, year: 2003, votes: 5007, revenue: 761 },
  { movie: 2, year: 2004, votes: 14813, revenue: 1193 },
  { movie: 3, year: 1995, votes: 10671, revenue: 1169 },
  { movie: 3, year: 1996, votes: 11526, revenue: 1134 },
  { movie: 3, year: 1997, votes: 9110, revenue: 1198 },
  { movie: 3, year: 1998, votes: 7591, revenue: 734 },
  { movie: 3, year: 1999, votes: 7007, revenue: 562 },
  { movie: 3, year: 2000, votes: 11011, revenue: 1352 },
  { movie: 3, year: 2001, votes: 8465, revenue: 786 },
  { movie: 3, year: 2002, votes: 6344, revenue: 506 },
  { movie: 3, year: 2003, votes: 11153, revenue: 737 },
  { movie: 3, year: 2004, votes: 12000, revenue: 922 },
  { movie: 4, year: 1995, votes: 10053, revenue: 927 },
  { movie: 4, year: 1996, votes: 7590, revenue: 1170 },
  { movie: 4, year: 1997, votes: 10053, revenue: 672 },
  { movie: 4, year: 1998, votes: 12618, revenue: 542 },
  { movie: 4, year: 1999, votes: 10948, revenue: 844 },
  { movie: 4, year: 2000, votes: 11431, revenue: 1103 },
  { movie: 4, year: 2001, votes: 12953, revenue: 844 },
  { movie: 4, year: 2002, votes: 5905, revenue: 718 },
  { movie: 4, year: 2003, votes: 14437, revenue: 881 },
  { movie: 4, year: 2004, votes: 5785, revenue: 852 },
  { movie: 5, year: 1995, votes: 7837, revenue: 565 },
  { movie: 5, year: 1996, votes: 10793, revenue: 1193 },
  { movie: 5, year: 1997, votes: 11988, revenue: 1256 },
  { movie: 5, year: 1998, votes: 6212, revenue: 502 },
  { movie: 5, year: 1999, votes: 8427, revenue: 658 },
  { movie: 5, year: 2000, votes: 14359, revenue: 500 },
  { movie: 5, year: 2001, votes: 9113, revenue: 528 },
  { movie: 5, year: 2002, votes: 11253, revenue: 861 },
  { movie: 5, year: 2003, votes: 10481, revenue: 638 },
  { movie: 5, year: 2004, votes: 12822, revenue: 693 },
  { movie: 6, year: 1995, votes: 5316, revenue: 1207 },
  { movie: 6, year: 1996, votes: 14246, revenue: 1324 },
  { movie: 6, year: 1997, votes: 10750, revenue: 591 },
  { movie: 6, year: 1998, votes: 11878, revenue: 916 },
  { movie: 6, year: 1999, votes: 5850, revenue: 1153 },
  { movie: 6, year: 2000, votes: 5693, revenue: 821 },
  { movie: 6, year: 2001, votes: 13720, revenue: 925 },
  { movie: 6, year: 2002, votes: 14936, revenue: 1180 },
  { movie: 6, year: 2003, votes: 11641, revenue: 1300 },
  { movie: 6, year: 2004, votes: 9568, revenue: 1041 },
];

const small_film_set_colspan = {
  data: [
    {
      id: 1,
      title: "The Shawshank Redemption",
      year: 1994,
      votes: 678790,
      rating: 9.2,
      rank: 1,
    },
    {
      id: 2,
      title: "The Godfather",
      year: 1972,
      votes: 511495,
      rating: 9.2,
      rank: 2,
    },
    {
      id: 3,
      title: "The Godfather: Part II",
      year: 1974,
      votes: 319352,
      rating: 9.0,
      rank: 3,
    },
    {
      id: 4,
      title: "The Good, the Bad and the Ugly",
      year: 1966,
      votes: 213030,
      rating: 8.9,
      rank: 4,
    },
    {
      id: 5,
      title: "My Fair Lady",
      year: 1964,
      votes: 533848,
      rating: 8.9,
      rank: 5,
    },
    {
      id: 6,
      title: "12 Angry Men",
      year: 1957,
      votes: 164558,
      rating: 8.9,
      rank: 6,
    },
  ],
  spans: [
    //row, column, width, height, value
    [2, "title", 2],
    [4, "year", 1, 3, "Later"],
  ],
};

const tree_data = [
  {
    id: "1",
    value: "The Shawshank Redemption",
    open: true,
    data: [
      { id: "1.1", value: "Part 1" },
      {
        id: "1.2",
        value: "Part 2",
        open: true,
        data: [
          { id: "1.2.1", value: "page 1" },
          { id: "1.2.2", value: "page 2" },
        ],
      },
      { id: "1.3", value: "Part 3" },
    ],
  },
  {
    id: "2",
    value: "The Godfather",
    data: [
      { id: "2.1", value: "Part 1" },
      { id: "2.2", value: "Part 2" },
    ],
  },
];

export interface Refs {
  menuTree: YvanUI.CtlTree;
}
export default abstract class<M, INP> extends YvanUI.BaseModule<M, Refs, INP> {
  viewResolver() {
    return {
      responsive: true,
      view: "dashboard",
      gridColumns: 4,
      gridRows: 3,
      cells: [
        {
          view: "panel",
          x: 0,
          y: 0,
          dx: 1,
          dy: 1,
          resize: true,
          body: {
            view: "chart",
            type: "pie",
            value: "#votes#",
            data: small_film_set,
          },
        },
        {
          view: "panel",
          x: 1,
          y: 0,
          dx: 2,
          dy: 1,
          resize: true,
          body: {
            view: "chart",
            type: "spline",
            value: "#votes#",
            data: small_film_set,
          },
        },
        {
          view: "panel",
          x: 0,
          y: 1,
          dx: 1,
          dy: 2,
          resize: true,
          body: {
            view: "list",
            template: "#votes#",
            data: small_film_set,
            scroll: false,
          },
        },
        {
          view: "panel",
          type: "space",
          header: "Widget with header",
          x: 1,
          y: 1,
          dx: 3,
          dy: 2,
          resize: true,
          body: {
            view: "datatable",
            autoConfig: true,
            data: small_film_set,
            scroll: false,
          },
        },
      ],
    };
  }
}
